from base.base import Base
from page.login import Login
from selenium.webdriver.common.by import By

class Boss(Login):
    #地区列表
    diqu_loc = (By.XPATH, '/html/body/div/div/div[2]/div/div[1]/ul/li[3]/ul/li[1]')

    def diqu(self):
        self.click(self.diqu_loc)

    """用例1.点击代理商，显示所有数据"""
    def show_account_manage(self):
        self.diqu()

    # 代理商
    new_agent_loc = (By.XPATH,'/html/body/div/div/div[2]/div/div[1]/ul/li[2]/ul/li[2]')

    def new_agents(self):
        self.click(self.new_agent_loc)

    """用例：点击新增地区，显示新增地区页面"""
    def show_play_manage(self):
        self.new_agents()

    """新增地区"""
    new_diqu_loc = (By.XPATH,'/html/body/div/div/div[2]/div/div[1]/ul/li[3]/ul/li[2]')
    def new_diqu(self):
        self.click(self.new_diqu_loc)

    def show_play_diqu(self):
        self.new_diqu()

    """审核列表"""
    shenhe_loc = (By.XPATH,'/html/body/div/div/div[2]/div/div[1]/ul/li[4]/ul/li[3]')
    def  shenhe(self):
        self.click(self.shenhe_loc)

    def show_play_shenhe(self):
        self.shenhe()